﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JOATServer.SocietyFramework.Core
{
    /// <summary>
    /// Represents a message used to communicate between automatons.
    /// Author: Micu Andrei
    /// </summary>
    [Serializable]
    public class Message
    {
        /// <summary>
        /// Name of the sender
        /// </summary>
        public string From { get; set; }

        /// <summary>
        /// The transferred data
        /// </summary>
        public object Data { get; set; }

        public Message(String from, Object data)
        {
            From = from;
            Data = data;
        }
    }
}
